Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: audio playback error #3419

Closed
wants to merge 10 commits into from
Closed

fix: audio playback error #3419

wants to merge 10 commits into from

Conversation

ygit
Copy link
Member

@ygit ygit commented Dec 11, 2024

Description

  • fix: audio playback error
  • Bumping all logs to the error level is intentional

Pre-launch Checklist

  • The Documentation is updated accordingly, or this PR doesn't require it.
  • I updated/added relevant documentation.
  • I listed at least one issue that this PR fixes in the description above.
  • I added new tests to check the change I am making, or this PR is test-exempt.
  • All existing and new tests are passing.

Merging:

  • Squash merge to dev
  • Merge commit to publish-alpha and main

Copy link

vercel bot commented Dec 11, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
dashboard-app ✅ Ready (Inspect) Visit Preview 💬 Add feedback Dec 12, 2024 3:07pm
storybook-app ✅ Ready (Inspect) Visit Preview 💬 Add feedback Dec 12, 2024 3:07pm

ygit added 2 commits December 12, 2024 16:08
# Conflicts:
#	packages/hms-video-store/src/audio-sink-manager/AudioSinkManager.ts
}
}

init(elementId?: string) {
if (this.state.initialized || this.audioSink) {
HMSLogger.e(this.TAG, 'Audio sink already initialized');
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's change this to debug instead of error?

const audioSink = document.createElement('div');
audioSink.id = `HMS-SDK-audio-sink-${uuid()}`;
const userElement = elementId && document.getElementById(elementId);
const audioSinkParent = userElement || document.body;
audioSinkParent.append(audioSink);

this.audioSink = audioSink;
HMSLogger.d(this.TAG, 'audio sink created', this.audioSink);
this.state.initialized = true;
HMSLogger.e(this.TAG, 'audio sink created', this.audioSink);
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This can also be a debug log

return;
} else {
HMSLogger.e(this.TAG, 'Autoplay succeeded', `${track}`);
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This can be removed

@ygit
Copy link
Member Author

ygit commented Dec 12, 2024

@KaustubhKumar05 Bumping all logs to the error level is intentional

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants